package com.luoye.lj.platform.model.domain.muser;

import com.luoye.lj.platform.model.domain.AuthInfo;
import com.luoye.lj.platform.model.domain.RUnitInfo;
import com.luoye.lj.platform.model.domain.RoleInfo;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Dave Liu
 * Date: 15-11-2
 * Time: 下午10:58
 * To change this template use File | Settings | File Templates.
 */
public class MUserDetail {
    private long id=-1;
    private String username;
    private String passwd;
    private String realName;//真实姓名
    private List<AuthInfo> authInfoList;
//    private List<RUnitInfo> unitInfoList;
    private List<RoleInfo> roleInfoList;
    private String defaultUrl;

    private String email;
    private String mobilePhone;
    private int status=-1;//状态，0正常，1锁定
    private String lastLoginTime;//最近一次登录时间

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public List<AuthInfo> getAuthInfoList() {
        return authInfoList;
    }

    public void setAuthInfoList(List<AuthInfo> authInfoList) {
        this.authInfoList = authInfoList;
    }

//    public List<RUnitInfo> getUnitInfoList() {
//        return unitInfoList;
//    }

//    public void setUnitInfoList(List<RUnitInfo> unitInfoList) {
//        this.unitInfoList = unitInfoList;
//    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public List<RoleInfo> getRoleInfoList() {
        return roleInfoList;
    }

    public void setRoleInfoList(List<RoleInfo> roleInfoList) {
        this.roleInfoList = roleInfoList;
    }

    public String getDefaultUrl() {
        return defaultUrl;
    }

    public void setDefaultUrl(String defaultUrl) {
        this.defaultUrl = defaultUrl;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(String lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    @Override
    public String toString() {
        return "MUserDetail{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", passwd='" + passwd + '\'' +
                ", realName='" + realName + '\'' +
                ", authInfoList=" + authInfoList +
//                ", unitInfoList=" + unitInfoList +
                ", roleInfoList=" + roleInfoList +
                ", defaultUrl='" + defaultUrl + '\'' +
                ", email='" + email + '\'' +
                ", mobilePhone='" + mobilePhone + '\'' +
                ", status=" + status +
                ", lastLoginTime='" + lastLoginTime + '\'' +
                '}';
    }
}
